package com.hducms.cms.service;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

import com.hducms.cms.entity.main.Channel;
import com.hducms.cms.entity.main.CmsGroup;

public interface CmsGroupService {
	/**
	 * 获取会员组列表
	 * @return
	 */
	public List<CmsGroup> getList();

	/**
	 * 查询默认会员组
	 * @return
	 */
	public CmsGroup getRegDef();

	public CmsGroup findById(Integer id);
//
//	public void updateRegDef(Integer regDefId);
//
//	public CmsGroup save(CmsGroup bean);
//	
	public CmsGroup save(CmsGroup bean,Integer[] viewGroupIds, Integer[] contriGroupIds);
//
//	public CmsGroup update(CmsGroup bean);
//	
	public CmsGroup update(CmsGroup bean,Integer[] viewGroupIds, Integer[] contriGroupIds);
//
	public CmsGroup deleteById(Integer id);
//
	public CmsGroup[] deleteByIds(Integer[] ids);
//
//	public CmsGroup[] updatePriority(Integer[] ids, Integer[] priority);
	
	/**
	 * 查询组的浏览栏目IDS
	 * @param groupId
	 * @return
	 */
	public Set<Integer> getViewChannelIds(Integer groupId);
	
	/**
	 * 查询组的投稿栏目IDS
	 * @param groupId
	 * @return
	 */
	public Set<Integer> getContriChannelIds(Integer groupId);

}